<?php
/* @var $this AnalysisController */
$emptyText = '<div class="no_meetgive ff_s"><span class="ico ico_tip"></span>还未创建“限时折扣”活动，现在去';
$emptyText .= CHtml::link(Yii::t('cmp','Create Discount'),array('createDiscount'),array('class'=>'mem_btn mem_btn20'));
$emptyText .= '</div>';
?>

<div class="pro_filter c_f d_n">
	<div class="filter f_l">
		<form method="post" action="">
			<label class="mr10">活动状态：<select class="s_ipt w_80" name="">
				<option selected="selected" value="0">请选择</option>
				<option value="1">未开始</option>
				<option value="2">进行中</option>
				<option value="3">已结束</option>
			</select></label>
			<label>活动时间：从 <input class="t_ipt w_120" type="text" name="" maxlength="20" />到 <input class="t_ipt w_120" type="text" name="" maxlength="20" /></label>
			<button class="mem_bgx mem_btn01" type="submit" name="">搜索</button>
		</form>
	</div>
</div>


<table class="list_table list_table2" cellpadding="0" cellspacing="0" width="100%">
	<thead>
		<tr>
			<th width="" class="pl15">活动名称</th>
			<th width="30%">活动时间</th>
			<th width="15%">时长</th>
			<th width="10%">产品数量</th>
			<th width="12%">状态</th>
			<th width="12%">操作</th>                                                       
		</tr>
	</thead>
</table>

<?php   
$this->widget('zii.widgets.CListView', array(  
    'dataProvider'=>$model->search(),  
    'itemView'=>'_discount_view',    
    'emptyText'=>$emptyText,  
    'batchItem'=>array(  
        //创建套餐搭配
        CHtml::link(Yii::t('cmp','Create Discount').'<b class="mem_bgx left"></b><b class="mem_bgx right"></b>',array('createDiscount'),array('class'=>'mem_bgx link_btn')),  
    ),  
    ));  
?>  